package com.etc.dao;

import com.etc.entity.Inhospital;

import java.util.List;

/**
 * @InterfaceName InhospitalMapper
 * @Description 住院相关dao
 * @Author 李端贵
 * @LastChangeDate 2022/7/5 11:02
 * @Version v1.0
 */

public interface InhospitalMapper {
    /**
     * 添加就诊人住院信息
     * @param inhospital
     * @return
     */
    int addInhospital(Inhospital inhospital);

    /**
     * 修改就诊人住院信息
     * @param inhospital
     * @return
     */
    int updateInhospital(Inhospital inhospital);

    /**
     * 多条件查询住院信息
     * @param condition 查询条件
     * @return
     */
    List<Inhospital> find(String condition);

    /**
     * 根据id找用户信息
     * @param inhospitalId 就诊人住院信息
     * @return
     */
    Inhospital findById(String inhospitalId);



}
